package com.twohand.admin.Entity;

import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.twohand.admin.Config.ArrayTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@TableName(value = "wx_order",autoResultMap = true)
@ApiModel("wx订单表")
@Data
public class WxOrder extends BaseEntity{
    @ApiModelProperty("订单号")
    String no;
    @ApiModelProperty("生成订单的openid")
    String openId;
    @ApiModelProperty("订单价格")
    Float totalPrice;
    @ApiModelProperty("订单过期时间")
    String expiredTime;
    @ApiModelProperty("appid")
    String appId;
    @ApiModelProperty("随机字符串")
    String nonceStr;

    @ApiModelProperty("随机字符串")
    String packageValue;
    @ApiModelProperty("时间戳")
    String timestamp;
    @ApiModelProperty("签名")
    String paySign;
    @ApiModelProperty("店铺名称")
    String shopName;
    @ApiModelProperty("店铺id")
    String shopId;
    @ApiModelProperty("账单编号数组，即该订单关联的账单")
    @TableField(typeHandler = ArrayTypeHandler.class)
    List<String> billNoList;

    @ApiModelProperty(value = "支付时间")
    String successTime;
    @ApiModelProperty(value = "支付状态，0，未支付，1已支付，2已过期")
    Integer status;
}
